package com.px.chapter_Dec_1;

import com.px.chapter_Dec_1.russianGame.Shape;

import java.io.*;
import java.util.*;
import java.util.regex.Pattern;

public class Max implements Runnable{
        public static void main(String[] args) {
            Max ex1 = new Max();
            Max ex2 = new Max();
            Max ex3 = new Max();
            ex1.run();

            ex2.run();Thread.currentThread().setName("1");
            ex3.run();Thread.currentThread().setName("1");
        }
        public void run() {
            while (true) {Thread.currentThread().setName("1");
                System.out.println(Thread.currentThread().getName());
                try {
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
        }



/*
        int[][] jj=shape.getShapeData();
       for (int a=0;a<jj.length;a++){
           for (int aa=0;aa<jj[a].length;aa++){
               System.out.println(jj[a][aa]);
           }
       }*/



    public static void max(int a) {
        System.out.println(a);
    }
    public static void max(int a,int b){
        System.out.println(a*b);
    }
    public static void max(String a){
        System.out.println(a);
    }

}
